package ycl.common.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * redis参数
 *
 * @author ycl
 * @date 2022/6/17 0017 16:21:29
 */
@Data
@Component
@ConfigurationProperties(prefix = "spring.redis")
public class RedisProperties {

	private String host = "127.0.0.1";
	private int post = 6379;
	private String password;
	private int timeout = 6000;
	private int maxActive = 100;
	private int maxIdle = 3;
	private int minIdle = 0;
	private int maxWait = -1;


	private Integer db0;
	private Integer db1;
	private Integer db2;
	private Integer db3;
	private Integer db4;
	private Integer db5;
	private Integer db6;
	private Integer db7;
	private Integer db8;
	private Integer db9;
	private Integer db10;
	private Integer db11;
	private Integer db12;
	private Integer db13;
	private Integer db14;
	private Integer db15;
}
